home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Stacks / Updates⁄New / AppointmentMaster™ v1.1.1 / background_2621.txt < prev    next >
Encoding:
Text File  |  1988-06-01  |  13.2 KB  |  578 lines

  1. -- background: 2621 from stack: in.1 
  2. -- bmap block id: 16828
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: Schedule
  6. ----- HyperTalk script -----
  7. on closeStack
  8.   global whosThere
  9.   put field id 26 into whosThere
  10.   pass closeStack
  11. end closeStack
  12.  
  13.  
  14.  
  15.  
  16. -- part 5 (field)
  17. -- low flags: 01
  18. -- high flags: 0002
  19. -- rect: left=163 top=25 right=46 bottom=391
  20. -- title width / last selected line: 0
  21. -- icon id / first selected line: 0 / 0
  22. -- text alignment: 1
  23. -- font id: 5
  24. -- text size: 14
  25. -- style flags: 0
  26. -- line height: 18
  27. -- part name: Date
  28. ----- HyperTalk script -----
  29.  
  30.  
  31.  
  32.  
  33. -- part 6 (field)
  34. -- low flags: 01
  35. -- high flags: 4000
  36. -- rect: left=79 top=44 right=94 bottom=279
  37. -- title width / last selected line: 0
  38. -- icon id / first selected line: 0 / 0
  39. -- text alignment: 0
  40. -- font id: 3
  41. -- text size: 9
  42. -- style flags: 0
  43. -- line height: 12
  44. -- part name: Nine
  45. ----- HyperTalk script -----
  46. on mouseUp
  47.   show card field id 5
  48.   show card field id 9
  49.   show card field id 10
  50.   show card field id 11
  51.   show card field id 12
  52.   put line 1 of field id 6 into card field id 5
  53.   put line 2 of field id 6 into card field id 9
  54.   put line 3 of field id 6 into card field id 10
  55.   put line 4 of field id 6 into card field id 11
  56. end mouseUp
  57.  
  58.  
  59.  
  60. -- part 7 (field)
  61. -- low flags: 01
  62. -- high flags: 4000
  63. -- rect: left=79 top=93 right=143 bottom=279
  64. -- title width / last selected line: 0
  65. -- icon id / first selected line: 0 / 0
  66. -- text alignment: 0
  67. -- font id: 3
  68. -- text size: 9
  69. -- style flags: 0
  70. -- line height: 12
  71. -- part name: ten
  72. ----- HyperTalk script -----
  73. on mouseUp
  74.   show card field id 5
  75.   show card field id 9
  76.   show card field id 10
  77.   show card field id 11
  78.   show card field id 12
  79.   put line 1 of field id 7 into card field id 5
  80.   put line 2 of field id 7 into card field id 9
  81.   put line 3 of field id 7 into card field id 10
  82.   put line 4 of field id 7 into card field id 11
  83. end mouseUp
  84.  
  85.  
  86. -- part 8 (field)
  87. -- low flags: 01
  88. -- high flags: 4000
  89. -- rect: left=79 top=142 right=193 bottom=279
  90. -- title width / last selected line: 0
  91. -- icon id / first selected line: 0 / 0
  92. -- text alignment: 0
  93. -- font id: 3
  94. -- text size: 9
  95. -- style flags: 0
  96. -- line height: 12
  97. -- part name: eleven
  98. ----- HyperTalk script -----
  99. on mouseUp
  100.   show card field id 5
  101.   show card field id 9
  102.   show card field id 10
  103.   show card field id 11
  104.   show card field id 12
  105.   put line 1 of field id 8 into card field id 5
  106.   put line 2 of field id 8 into card field id 9
  107.   put line 3 of field id 8 into card field id 10
  108.   put line 4 of field id 8 into card field id 11
  109. end mouseUp
  110.  
  111.  
  112. -- part 9 (field)
  113. -- low flags: 01
  114. -- high flags: 4000
  115. -- rect: left=79 top=192 right=242 bottom=279
  116. -- title width / last selected line: 0
  117. -- icon id / first selected line: 0 / 0
  118. -- text alignment: 0
  119. -- font id: 3
  120. -- text size: 9
  121. -- style flags: 0
  122. -- line height: 12
  123. -- part name: twelve
  124. ----- HyperTalk script -----
  125. on mouseUp
  126.   show card field id 5
  127.   show card field id 9
  128.   show card field id 10
  129.   show card field id 11
  130.   show card field id 12
  131.   put line 1 of field id 9 into card field id 5
  132.   put line 2 of field id 9 into card field id 9
  133.   put line 3 of field id 9 into card field id 10
  134.   put line 4 of field id 9 into card field id 11
  135. end mouseUp
  136.  
  137.  
  138. -- part 10 (field)
  139. -- low flags: 01
  140. -- high flags: 4000
  141. -- rect: left=79 top=241 right=291 bottom=279
  142. -- title width / last selected line: 0
  143. -- icon id / first selected line: 0 / 0
  144. -- text alignment: 0
  145. -- font id: 3
  146. -- text size: 9
  147. -- style flags: 0
  148. -- line height: 12
  149. -- part name: one
  150. ----- HyperTalk script -----
  151. on mouseUp
  152.   show card field id 5
  153.   show card field id 9
  154.   show card field id 10
  155.   show card field id 11
  156.   show card field id 12
  157.   put line 1 of field id 10 into card field id 5
  158.   put line 2 of field id 10 into card field id 9
  159.   put line 3 of field id 10 into card field id 10
  160.   put line 4 of field id 10 into card field id 11
  161. end mouseUp
  162.  
  163.  
  164. -- part 11 (field)
  165. -- low flags: 01
  166. -- high flags: 4000
  167. -- rect: left=79 top=290 right=340 bottom=279
  168. -- title width / last selected line: 0
  169. -- icon id / first selected line: 0 / 0
  170. -- text alignment: 0
  171. -- font id: 3
  172. -- text size: 9
  173. -- style flags: 0
  174. -- line height: 12
  175. -- part name: two
  176. ----- HyperTalk script -----
  177. on mouseUp
  178.   show card field id 5
  179.   show card field id 9
  180.   show card field id 10
  181.   show card field id 11
  182.   show card field id 12
  183.   put line 1 of field id 11 into card field id 5
  184.   put line 2 of field id 11 into card field id 9
  185.   put line 3 of field id 11 into card field id 10
  186.   put line 4 of field id 11 into card field id 11
  187. end mouseUp
  188.  
  189.  
  190.  
  191. -- part 12 (field)
  192. -- low flags: 01
  193. -- high flags: 4000
  194. -- rect: left=310 top=44 right=94 bottom=505
  195. -- title width / last selected line: 0
  196. -- icon id / first selected line: 0 / 0
  197. -- text alignment: 0
  198. -- font id: 3
  199. -- text size: 9
  200. -- style flags: 0
  201. -- line height: 12
  202. -- part name: three
  203. ----- HyperTalk script -----
  204. on mouseUp
  205.   show card field id 5
  206.   show card field id 9
  207.   show card field id 10
  208.   show card field id 11
  209.   show card field id 12
  210.   put line 1 of field id 12 into card field id 5
  211.   put line 2 of field id 12 into card field id 9
  212.   put line 3 of field id 12 into card field id 10
  213.   put line 4 of field id 12 into card field id 11
  214. end mouseUp
  215.  
  216.  
  217. -- part 13 (field)
  218. -- low flags: 01
  219. -- high flags: 4000
  220. -- rect: left=310 top=93 right=143 bottom=505
  221. -- title width / last selected line: 0
  222. -- icon id / first selected line: 0 / 0
  223. -- text alignment: 0
  224. -- font id: 3
  225. -- text size: 9
  226. -- style flags: 0
  227. -- line height: 12
  228. -- part name: four
  229. ----- HyperTalk script -----
  230. on mouseUp
  231.   show card field id 5
  232.   show card field id 9
  233.   show card field id 10
  234.   show card field id 11
  235.   show card field id 12
  236.   put line 1 of field id 13 into card field id 5
  237.   put line 2 of field id 13 into card field id 9
  238.   put line 3 of field id 13 into card field id 10
  239.   put line 4 of field id 13 into card field id 11
  240. end mouseUp
  241.  
  242.  
  243. -- part 14 (field)
  244. -- low flags: 01
  245. -- high flags: 4000
  246. -- rect: left=310 top=142 right=192 bottom=506
  247. -- title width / last selected line: 0
  248. -- icon id / first selected line: 0 / 0
  249. -- text alignment: 0
  250. -- font id: 3
  251. -- text size: 9
  252. -- style flags: 0
  253. -- line height: 12
  254. -- part name: five
  255. ----- HyperTalk script -----
  256. on mouseUp
  257.   show card field id 5
  258.   show card field id 9
  259.   show card field id 10
  260.   show card field id 11
  261.   show card field id 12
  262.   put line 1 of field id 14 into card field id 5
  263.   put line 2 of field id 14 into card field id 9
  264.   put line 3 of field id 14 into card field id 10
  265.   put line 4 of field id 14 into card field id 11
  266. end mouseUp
  267.  
  268.  
  269. -- part 15 (field)
  270. -- low flags: 01
  271. -- high flags: 4000
  272. -- rect: left=310 top=191 right=242 bottom=506
  273. -- title width / last selected line: 0
  274. -- icon id / first selected line: 0 / 0
  275. -- text alignment: 0
  276. -- font id: 3
  277. -- text size: 9
  278. -- style flags: 0
  279. -- line height: 12
  280. -- part name: six
  281. ----- HyperTalk script -----
  282. on mouseUp
  283.   show card field id 5
  284.   show card field id 9
  285.   show card field id 10
  286.   show card field id 11
  287.   show card field id 12
  288.   put line 1 of field id 15 into card field id 5
  289.   put line 2 of field id 15 into card field id 9
  290.   put line 3 of field id 15 into card field id 10
  291.   put line 4 of field id 15 into card field id 11
  292. end mouseUp
  293.  
  294.  
  295. -- part 16 (field)
  296. -- low flags: 01
  297. -- high flags: 4000
  298. -- rect: left=310 top=241 right=291 bottom=506
  299. -- title width / last selected line: 0
  300. -- icon id / first selected line: 0 / 0
  301. -- text alignment: 0
  302. -- font id: 3
  303. -- text size: 9
  304. -- style flags: 0
  305. -- line height: 12
  306. -- part name: seven
  307. ----- HyperTalk script -----
  308. on mouseUp
  309.   show card field id 5
  310.   show card field id 9
  311.   show card field id 10
  312.   show card field id 11
  313.   show card field id 12
  314.   put line 1 of field id 16 into card field id 5
  315.   put line 2 of field id 16 into card field id 9
  316.   put line 3 of field id 16 into card field id 10
  317.   put line 4 of field id 16 into card field id 11
  318. end mouseUp
  319.  
  320.  
  321. -- part 17 (field)
  322. -- low flags: 01
  323. -- high flags: 4000
  324. -- rect: left=310 top=290 right=339 bottom=506
  325. -- title width / last selected line: 0
  326. -- icon id / first selected line: 0 / 0
  327. -- text alignment: 0
  328. -- font id: 3
  329. -- text size: 9
  330. -- style flags: 0
  331. -- line height: 12
  332. -- part name: eight
  333. ----- HyperTalk script -----
  334. on mouseUp
  335.   show card field id 5
  336.   show card field id 9
  337.   show card field id 10
  338.   show card field id 11
  339.   show card field id 12
  340.   put line 1 of field id 17 into card field id 5
  341.   put line 2 of field id 17 into card field id 9
  342.   put line 3 of field id 17 into card field id 10
  343.   put line 4 of field id 17 into card field id 11
  344. end mouseUp
  345.  
  346.  
  347. -- part 21 (button)
  348. -- low flags: 00
  349. -- high flags: 2000
  350. -- rect: left=0 top=0 right=44 bottom=46
  351. -- title width / last selected line: 0
  352. -- icon id / first selected line: 3835 / 3835
  353. -- text alignment: 1
  354. -- font id: 0
  355. -- text size: 12
  356. -- style flags: 0
  357. -- line height: 16
  358. -- part name: Yesterday
  359. ----- HyperTalk script -----
  360. on mouseUp
  361.   visual effect wipe left
  362.   get field id 5
  363.   put it into today
  364.   convert today to seconds
  365.   put (60*60*24) into oneDay
  366.   subtract oneDay from today
  367.   put today into field id 5
  368.   convert field id 5 to long date
  369.   theSchedule schedule
  370. end mouseUp
  371.  
  372.  
  373.  
  374.  
  375. -- part 22 (button)
  376. -- low flags: 00
  377. -- high flags: 2000
  378. -- rect: left=469 top=311 right=342 bottom=512
  379. -- title width / last selected line: 0
  380. -- icon id / first selected line: 29484 / 29484
  381. -- text alignment: 1
  382. -- font id: 0
  383. -- text size: 12
  384. -- style flags: 0
  385. -- line height: 16
  386. -- part name: Tomorrow
  387. ----- HyperTalk script -----
  388. on mouseUp
  389.   visual effect wipe right
  390.   get field id 5
  391.   put it into today
  392.   convert today to seconds
  393.   put (60*60*24) into oneDay
  394.   add oneDay to today
  395.   put today into field id 5
  396.   convert field id 5 to long date
  397.   theSchedule update
  398. end mouseUp
  399.  
  400.  
  401.  
  402.  
  403. -- part 24 (button)
  404. -- low flags: 00
  405. -- high flags: 2000
  406. -- rect: left=93 top=3 right=44 bottom=129
  407. -- title width / last selected line: 0
  408. -- icon id / first selected line: 21700 / 21700
  409. -- text alignment: 1
  410. -- font id: 0
  411. -- text size: 12
  412. -- style flags: 0
  413. -- line height: 16
  414. -- part name: Home
  415. ----- HyperTalk script -----
  416. on mouseUp
  417.   show menubar
  418.   visual effect iris close
  419.   go Home
  420. end mouseUp
  421.  
  422.  
  423.  
  424. -- part 26 (field)
  425. -- low flags: 01
  426. -- high flags: 0004
  427. -- rect: left=210 top=3 right=28 bottom=374
  428. -- title width / last selected line: 0
  429. -- icon id / first selected line: 0 / 0
  430. -- text alignment: 1
  431. -- font id: 6
  432. -- text size: 18
  433. -- style flags: 0
  434. -- line height: 24
  435. -- part name: Your Name
  436.  
  437.  
  438. -- part 27 (button)
  439. -- low flags: 00
  440. -- high flags: A002
  441. -- rect: left=393 top=2 right=45 bottom=505
  442. -- title width / last selected line: 0
  443. -- icon id / first selected line: 22308 / 22308
  444. -- text alignment: 1
  445. -- font id: 0
  446. -- text size: 12
  447. -- style flags: 0
  448. -- line height: 16
  449. -- part name: New Appointment Card
  450. ----- HyperTalk script -----
  451. on mouseUp
  452.   visual iris open
  453.   go next background
  454.   doMenu "new Card"
  455. end mouseUp
  456.  
  457.  
  458.  
  459.  
  460. -- part 30 (field)
  461. -- low flags: 81
  462. -- high flags: 0007
  463. -- rect: left=264 top=223 right=305 bottom=478
  464. -- title width / last selected line: 0
  465. -- icon id / first selected line: 0 / 0
  466. -- text alignment: 0
  467. -- font id: 3
  468. -- text size: 12
  469. -- style flags: 0
  470. -- line height: 16
  471. -- part name: Links
  472. ----- HyperTalk script -----
  473. on mouseUp
  474.   hide bkgnd field id 30
  475. end mouseUp
  476.  
  477.  
  478. -- part 38 (button)
  479. -- low flags: 00
  480. -- high flags: 2000
  481. -- rect: left=3 top=45 right=339 bottom=44
  482. -- title width / last selected line: 0
  483. -- icon id / first selected line: 0 / 0
  484. -- text alignment: 1
  485. -- font id: 0
  486. -- text size: 12
  487. -- style flags: 0
  488. -- line height: 16
  489. -- part name: My Appointment Book
  490. ----- HyperTalk script -----
  491. on mouseUp
  492.   get the date
  493.   put it into temp
  494.   ask "Schedule for Which Day?" with temp
  495.   put it into field id 5
  496.   put it into apptDay
  497.   convert apptDay to seconds
  498.   convert field id 5 to long date
  499.   ask "What is your name, Please?"  with field id 26 --field "Your Name"
  500.   put it into field id 26
  501.   theSchedule schedule
  502. end mouseUp
  503.  
  504.  
  505.  
  506.  
  507. -- part 39 (button)
  508. -- low flags: 00
  509. -- high flags: 2000
  510. -- rect: left=46 top=4 right=44 bottom=94
  511. -- title width / last selected line: 0
  512. -- icon id / first selected line: 1007 / 1007
  513. -- text alignment: 1
  514. -- font id: 0
  515. -- text size: 12
  516. -- style flags: 0
  517. -- line height: 16
  518. -- part name: Printer
  519. ----- HyperTalk script -----
  520. on mouseUp
  521.   answer "What do you wish to print?" with "Cancel" or "Print Card" or "Print All"
  522.   if it is "Cancel" then
  523.     exit mouseUp
  524.   else
  525.     if it is "Print Card" then
  526.       doMenu "Print Card"
  527.       exit mouseUp
  528.     else
  529.       if it is "Print All" then
  530.         ask "Print How Many Days?" with 1
  531.         put it into numOfDays
  532.         set lockScreen to true
  533.         push card
  534.         go last card
  535.         send mouseUp to bkgnd button id 54
  536.         pop card
  537.         set lockScreen to false
  538.         open printing with dialog
  539.         repeat with y = 1 to numOfDays
  540.           print this card
  541.           get the number of lines of field id 30
  542.           put it into thisNum
  543.           repeat with x = 1 to thisNum
  544.             get line x of field id 30
  545.             go it
  546.             print this card
  547.             go card id 3049
  548.           end repeat
  549.           send mouseUp to bkgnd button id 22  --"Tomorrow"
  550.           next repeat
  551.         end repeat
  552.         close printing
  553.       end if
  554.     end if
  555.   end if
  556. end mouseUp
  557.  
  558.  
  559. -- part 25 (field)
  560. -- low flags: 81
  561. -- high flags: 0002
  562. -- rect: left=0 top=0 right=342 bottom=512
  563. -- title width / last selected line: 0
  564. -- icon id / first selected line: 0 / 0
  565. -- text alignment: 1
  566. -- font id: 0
  567. -- text size: 12
  568. -- style flags: 0
  569. -- line height: 16
  570. -- part name: ©Copyright
  571. ----- HyperTalk script -----
  572. on mouseUp
  573.   play boing
  574.   hide field id 25
  575. end mouseUp
  576.  
  577.  
  578.